package com.insurance.service.impl;

import com.insurance.dao.auto.mapper.CourseMapper;
import com.insurance.dao.auto.mapper.ScoreMapper;
import com.insurance.dao.auto.mapper.StudentMapper;
import com.insurance.dao.auto.mapper.ThbAccountMapper;
import com.insurance.dao.biz.mapper.BizScoreMapper;
import com.insurance.model.Course;
import com.insurance.model.Score;
import com.insurance.model.Student;
import com.insurance.model.ThbAccount;
import com.insurance.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by 27340 on 2018/1/7.
 */
@Service
public class TestServiceImpl implements TestService {
    @Autowired
    private BizScoreMapper bizScoreMapper;

    @Autowired
    private ScoreMapper scoreMapper;

    @Autowired
    private CourseMapper courseMapper;

    @Autowired
    private StudentMapper studentMapper;

    @Autowired
    private ThbAccountMapper thbAccountMapper;

    @Override
    public Score queryScore(Integer id){
        return bizScoreMapper.selectByPrimaryKey(id);
    }

    @Override
    public Score queryScore1(Integer id){
        return scoreMapper.selectByPrimaryKey(id);
    }

    @Override
    public Course queryCourse(Integer id){
        return courseMapper.selectByPrimaryKey(id);
    }

    @Override
    public Student queryStudent(Integer id){
        return studentMapper.selectByPrimaryKey(id);
    }

    @Override
    public ThbAccount queryThbAccount(Integer id){
        return thbAccountMapper.selectByPrimaryKey(id);
    }
}
